<template>
  <!-- <div> -->
  <el-dialog title="新增出差补助标准" :visible.sync="ishEvection" width="40%" :before-close="Close">
    <el-form ref="form" :label-position="labelPosition" :inline="true" :model="form" label-width="80px">
      <el-row>
        <el-col :span="100">
          <el-form-item label="单位">
            <el-select v-model="form.input1" size="mini" placeholder="请选择活动区域">
              <el-option label="中国华电集团" value="中国华电集团"></el-option>
              <el-option label="中国光电集团" value="中国光电集团"></el-option>
            </el-select>
          </el-form-item>

          <el-form-item label="部门">
            <el-select v-model="form.input2" size="mini" placeholder="请选择活动区域">
              <el-option label="技术部" value="技术部"></el-option>
              <el-option label="财务部" value="财务部"></el-option>
            </el-select>
          </el-form-item>
        </el-col>
        <el-col :span="100">
          <el-form-item label="职务">
            <el-select v-model="form.input3" size="mini" placeholder="请选择活动区域">
              <el-option label="前端开发" value="前端开发"></el-option>
              <el-option label="计算员" value="计算员"></el-option>
            </el-select>
          </el-form-item>
          <el-form-item label="补助标准">
            <el-input v-model="form.input4" class="qwqe" size="mini"></el-input>
          </el-form-item>
        </el-col>
      </el-row>

      <div class="flex_evenly">
        <!-- <el-button type="primary" @click="outEvection">保存</el-button> -->
        <el-button size="small" type="success" @click="outEvection">提交</el-button>
        <el-button size="small" type="danger" @click="Close">关闭</el-button>
      </div>
    </el-form>
  </el-dialog>
  <!-- </div> -->
</template>

<script>
export default {
  data() {
    return {
      input: 212.03,
      labelPosition: 'right',
      ishEvection: true,
      form: {
        input1: '中国华电集团',
        input2: '技术部',
        input3: '前端开发',
        input4: '423'
      }
    }
  },

  methods: {
    Close(done) {
      if (this.loading) {
        return
      }
      this.$confirm('你确定要离开吗？')
        .then(_ => {
          this.ishEvection = false
        })
        .catch(_ => {})
    },
    addEv() {
      this.ishEvection = true
    },
    outEvection() {
      this.ishEvection = false
    }
  }
}
</script>

<style lang="scss" scoped>
.Information {
  width: 100%;
  p {
    margin: 0px auto;
    width: 80%;
    .el-button {
      margin-right: 0%;
      margin-top: 2%;
      margin-left: 14%;
      margin-bottom: 5%;
      /* text-align: center; */
      width: 70px;
    }
  }
}
.qwqe {
  width: 108%;
}
</style>
